<template>
  <section class="container">
    <div style="--i:1">L</div>
    <div style="--i:2">o</div>
    <div style="--i:3">a</div>
    <div style="--i:4">d</div>
    <div style="--i:5">i</div>
    <div style="--i:6">n</div>
    <div style="--i:7">g</div>
    <div style="--i:8">...</div>
  </section>
</template>
<style scoped>
section{
  color: #000;
  height: 200px;
  font-size: 80px;
  font-weight: 600;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #000;
  animation: animateBg 10s linear infinite;
}

@keyframes animate{
  0%, 100%{
    color: #fff;
    filter: blur(2px);
    text-shadow: 0 0 10px #00b3ff,
      0 0 20px #00b3ff,
      0 0 40px #00b3ff,
      0 0 80px #00b3ff,
      0 0 120px #00b3ff,
      0 0 200px #00b3ff,
      0 0 300px #00b3ff,
      0 0 300px #00b3ff;
  }
  25%, 75%{
    color: #000;
    filter: blur(0px);
    text-shadow: none;
  }
}

/* 1. 使用 var 变量 */
section {
  div {
    animation: animate 4s linear infinite;
    animation-delay: calc(0.1s * var(--i));
  }
}
</style>